// 页面布局
.#{$prefix}-list-box {
    height: 100%;
    .#{$prefix}-header {
        min-height: 44px;
        padding: 6px 0;
        @include box-shadow();
        .#{$prefix}-button-container {
            padding: 0 18px;
            display: flex;
        }
    }
    &-container {
        height: 100%;
        @include layout-padding();
        // 页面search
        .#{$prefix}-search-container {
            margin: 0;
        }
        .#{$prefix}-list-box-content {
            @include layout-con;
        }
    }
}

// 其他页面布局，如编辑、新增等
.#{$prefix}-section-layout {
    height: 100%;
    @include padding(0 16px);
    .#{$prefix}-section {
        .#{$prefix}-header {
            padding: 8px 24px;
            position: relative;
            &:before {
                position: absolute;
                right: 0;
                left: 0;
                bottom: 0;
                content: '';
                border-bottom: 1px solid #f0f0f0;
            }
            .#{$prefix}-title {
                display: block;
                position: relative;
                padding: 0 12px;
                color: rgba(0, 0, 0, 0.85);
                font-weight: 600;
                line-height: 22px;
                &:before {
                    position: absolute;
                    top: 0;
                    left: 0;
                    bottom: 0;
                    border-left: 4px solid #1890ff;
                    content: '';
                    transform: scaleY(1);
                    opacity: 1;
                }
            }
            &-no-border {
                &:before {
                    content: none;
                }
            }
        }
        .#{$prefix}-content {
            height: 100%;
            padding: 20px 0;
            .toolbar {
                padding: 8px 24px;
            }
            .toolbar-right {
                text-align: right;
            }
            // .#{$prefix}-button-container {
            //     display: flex;
            //     justify-content: space-around;
            // }
        }
    }
}

// 查询form表单
.search-form {
    .el-form-item {
        .el-form-item__content {
            width: 140px;
        }
    }
    .form-item-button-container {
        margin-right: 0;
        .el-form-item__content {
            width: 170px;
        }
    }

    // 工作区域样式
    .work-space-code {
        display: inline-flex !important;
        .el-form-item__content {
            width: 260px !important;
            display: flex;
        }
    }
}

// 详情页面
.detail-form {
    .el-form-item {
        .el-form-item__content {
            @include border-bottom();
            .el-textarea__inner {
                border: 0;
            }
        }
        &:last-child {
            .el-form-item__content {
                border: 0;
            }
        }
    }
}

.fit-layout {
    height: 100%;
    .delivery-section,
    .delivery-content,
    .el-row,
    .component-wrapper {
        height: 100%;
    }
}

// 操作列样式
.operation-list {
    display: flex;
    align-items: center;
    .button-default {
        margin-right: 10px;
        color: #409eff;
        cursor: pointer;
        padding: 2px 4px;
        &:last-child {
            margin: 0;
        }
    }
    .button-danger {
        color: #f56c6c;
    }
}

.component-uploader {
    width: 148px;
    height: 148px;
    display: inline-block;
    .el-upload {
        border: 1px dashed #d9d9d9;
        border-radius: 6px;
        width: 148px;
        height: 148px;
        &:hover {
            position: relative;
            border-radius: 6px;
            text-align: center;
            color: #fff;
            font-size: 20px;
            .upload-list__item-actions {
                position: absolute;
                width: 100%;
                height: 100%;
                left: 0;
                top: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: rgba(0, 0, 0, 0.5);
                transition: opacity 0.3s;
                .item-delete {
                    display: inline-block;
                    cursor: pointer;
                }
            }
        }
        .upload-list__item-actions {
            display: none;
        }
        .component-uploader-icon {
            font-size: 28px;
            color: #8c939d;
            line-height: 148px;
            text-align: center;
        }
        .upload-image {
            height: 100%;
            width: 100%;
            display: block;
        }
    }
}

.empty-data {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    @include border;
    margin-bottom: 10px;
    .empty-image {
        width: 64px;
        height: 40px;
        margin-bottom: 8px;
    }
}
